from django.contrib import admin

# Register your models here.
from web.models import Category,Topic


#设置admin管理后台的显示信息
class CategoryAdmin(admin.ModelAdmin):
    list_display = ['id','name','type','is_nav','is_index']


class TopicAdmin(admin.ModelAdmin):
    list_display = ['id','title','create_date','release_date','author']


admin.site.register(Category,CategoryAdmin)
admin.site.register(Topic,TopicAdmin)
